package com.bravo.search.repository;

import com.bravo.search.entity.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * @author: Yuyong
 * @create: 2019-08-06 11:10
 **/

/**
 * 文章数据访问层接口
 */
public interface ArticleSearchRepository extends ElasticsearchRepository<Article,String> {

    /**
     * 检索
     * @param title
     * @param content
     * @param pageable
     * @return
     */
    public Page<Article> findByTitleOrContentLike(String title, String content, Pageable pageable);
}
